package com.ruoyi.order.mapper;

import java.util.List;
import com.ruoyi.order.domain.OrderForm;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2023-02-09
 */

@Mapper
public interface OrderFormMapper 
{
    /**
     * 查询订单
     * 
     * @param orderId 订单主键
     * @return 订单
     */
    public OrderForm selectOrderFormByOrderId(Long orderId);

    /**
     * 查询订单列表
     * 
     * @param orderForm 订单
     * @return 订单集合
     */
    public List<OrderForm> selectOrderFormList(OrderForm orderForm);

    /**
     * 新增订单
     * 
     * @param orderForm 订单
     * @return 结果
     */
    public int insertOrderForm(OrderForm orderForm);

    /**
     * 修改订单
     * 
     * @param orderForm 订单
     * @return 结果
     */
    public int updateOrderForm(OrderForm orderForm);

    /**
     * 删除订单
     * 
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteOrderFormByOrderId(Long orderId);

    /**
     * 批量删除订单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderFormByOrderIds(Long[] orderIds);
}
